package priv.yiyuan.example.design.chain.command02;

/**
 * 支付上下文
 * <p>
 * 具体上下文
 *
 * @author YiYuan
 * @data 2025/10/9
 * @apoNote
 */
public class PaymentContext implements Context {

    private String orderId;

    private Double amount;

    public PaymentContext(String orderId, Double amount) {
        this.orderId = orderId;
        this.amount = amount;
    }

    @Override
    public String getLogMessage() {
        return "支付成功: 订单ID=" + orderId + ", 金额=" + amount + "元";
    }

}
